/*
 * @Description: 
 * @Author: rendc
 * @Date: 2024-09-19 14:47:51
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-19 15:08:26
 */
/**
 * 派生类
 */
public class Derived extends Base {
  // 成员变量
  int n = 2; // 同名
  int v = 20;

  // 重写show
  @Override
  public void show() {
    System.out.println("Derived中的n=" + n);
    System.out.println("Derived中的v=" + v);
  }

  // disp
  public void disp() {
    System.out.println("Derived中的v=" + v);
  }
}
